import { PaginationParamsType, ParamsObjType as _ParamsObjType } from "@/library/common/types"

type _UseAllType = {
    Id: number
    OrderId: string
    State: number
    ShopCode: string
    ShopName: string
    TotalPrice: string
    OrderType: number
    NumberOfDishes: number
    OperatedBy: string
    UpdatedAt: string
    CreatedAt: string
    Range: string
}

/**
 * 查询参数
 */
export type SelectParamsType = Partial<Pick<_UseAllType, "ShopCode" | "OrderId" | "Range">> & PaginationParamsType

/**
 * 查询响应 Data
 */
export type DataType = Omit<_UseAllType, "Range">

/**
 * 下拉参数
 */
export type ParamsType = {
    AsyncTaskTimeUnit: _ParamsObjType[]
    OrderState: _ParamsObjType[]
    OrderType: _ParamsObjType[]
}
export type ParamsObjType = Partial<Record<keyof ParamsType, Record<string, string>>>